package Event.lib;

import Creature.Player;
import Event.Story;
import Item.Item;

public class GarbageCollection extends Story{
    public GarbageCollection(Player player){
        super(player);
        this.options = new String[]{"捡起"};//
        this.eventName = "GarbageCollection";
        this.happenText = "你看到了几个一半是白色一半是红色的小球，看起来挺精致，你要捡起来吗？";

    }

    @Override
    public void eventHappen(int option) {
        switch (option) {
            case 0:
                endText = "这似乎就是传说中的精灵球。";
                Item ball = new Item("红白球");
                player.itemList.add(ball);
                child = new AnotherBall(player);
                break;
            case 1:
                endText = "你捡到了红白精灵球。";
                break;
        }
    }
}
class AnotherBall extends Story{

    public AnotherBall(Player player) {
        super(player);
        this.options = new String[]{"捡起"};//
        this.eventName = "AnotherBall";
        this.happenText = "你看到了又看到一个黄绿相间的小球，根据你之前捡垃圾的经验，你觉得可能是传说中公园限定的狩猎精灵球，捕获是红白球的1.5倍，但看起来挺粗糙，你要捡起来吗？";

    }
    public void eventHappen(int option) {
        switch (option) {
            case 0:
                endText = "球上手之后，你感觉球很粗糙，没有之前红白球的那种质感。";
                Item ball = new Item("可能是狩猎球");
                player.itemList.add(ball);
                child = new CrazyDog(player);
                break;
        }
    }
}